import * as React from 'react'
import { Form } from 'antd'
import { BaseAdd } from '@/pages/templates/base-add'
import api from '@/api'

export class CustomerAdd extends BaseAdd {
  apiUpdate = api.order.add
  displayRows = [
    { key: 'customer_id', label: '客户代码',
      rules: [{ required: true, message: '客户代码为必填项' }],
    },
    { key: 'componey_name', label: '公司名称' },
    { key: 'address', label: '地址' },
    { key: 'principal', label: '负责人' },
    { key: 'contact', label: '联系方式' },
    { key: 'main_business', label: '主要营业方向' },
    { key: 'comment', label: '备注' }
  ]
}
export default Form.create()(CustomerAdd)
